import React from 'react';
import { useHistory } from 'react-router-dom'
import NavHead from '../../components/NavHead'
import SelectList from './SelectList'
import { SelecCont } from './styleModel'

const SletctUi = (props) => {
  let history = useHistory()
  return (
    <SelecCont>
      <NavHead title={'请选择模块'}></NavHead>
      <SelectList {...props}></SelectList>
      <div className='select-button' onClick={() => history.push('/course')}>确认导入</div>
    </SelecCont>
  )
}
export default SletctUi;